package com.smedi.ismedi.organization.core.infrastructure.enumerate;

/**
 * @Author: xulinjun
 * @Date: 2021-6-7 12:00
 */
public enum SpecialTypeEnum {
    CONSTRUCTION_UNIT("CONSTRUCTION_UNIT", "建设单位"),

    SUPERVISION_UNIT("SUPERVISION_UNIT", "监理单位"),

    IMPLEMENTATION_UNIT("IMPLEMENTATION_UNIT", "施工单位"),

    DESIGN_INSTITUTE("DESIGN_INSTITUTE", "设计单位"),

    BIM_CONSULTING_UNIT("BIM_CONSULTING_UNIT", "BIM咨询单位"),

    CONSORTIUM_UNIT("CONSORTIUM_UNIT", "联合体单位"),

    CONSTRUCTION_AGENCY("CONSTRUCTION_AGENCY", "代建单位"),

    MATERIAL_SUPPLIER("MATERIAL_SUPPLIER", "材料供应商"),

    EQUIPMENT_SUPPLIER("EQUIPMENT_SUPPLIER", "设备供应商"),

    COST_CONSULTING_UNIT("COST_CONSULTING_UNIT", "造价咨询单位"),

    PROFESSIONAL_SUBCONTRACTOR("PROFESSIONAL_SUBCONTRACTOR", "专业分包单位"),

    LABOR_SUBCONTRACTOR("LABOR_SUBCONTRACTOR", "劳务分包单位"),

    INVESTIGATION_UNIT("INVESTIGATION_UNIT", "勘察单位"),

    GENERAL_CONTRACTOR("GENERAL_CONTRACTOR", "EPC总包单位"),

    TESTING_UNIT("TESTING_UNIT", "试验检测单位"),

    OTHER("OTHER", "其他");

    private String value;

    private String name;

    SpecialTypeEnum(String value, String name) {
        this.name = name;
        this.value = value;
    }

    public static String getName(String value) {
        for (SpecialTypeEnum c : SpecialTypeEnum.values()) {
            if (c.getValue().equals(value)) {
                return c.name;
            }
        }
        return null;
    }


    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }
}
